﻿@model Site3AI.Models.QizSmsSession

@{
    ViewBag.Title = "短信随访详情";
}
<h3>@Model.QizSmsSubjectMonthIdx.QizSmsSubject.QizSubject.Title</h3>
<h4>@Model.Timemark.ToString("yyyy-MM-dd")</h4>
<ol data-role="listview" data-inset="false" data-corners="false">
    @foreach (var item in Model.QizSmsSessionDetails)
    {
        <li style="@(item.ValueAutoEvalution == "异常" ? "color:red" : "")">
            <h4>@item.QizSmsSubjDefine.QizSubjectDefine.QizItem.Title</h4>
            <p>
                结果：@Html.FixStrMiddle(item.UserValue, 16) @Html.DisplayFor(model => item.QizSmsSubjDefine.QizSubjectDefine.QizItem.Unit)
            </p>
            @if (!String.IsNullOrEmpty(item.ValueAutoEvalution))
            {
                <p>
                    评价：@Html.DisplayFor(model => item.ValueAutoEvalution)
                </p>
            }
            <p>
                填报时间：@item.Timemark.ToString("yyyy-MM-dd HH:mm")
            </p>
            
            @*@if (!String.IsNullOrEmpty(item.QizSmsSubjDefine.QizSubjectDefine.QizItem.Unit))
            {
                <p>
                    <h4>单位：</h4><span>@item.QizSmsSubjDefine.QizSubjectDefine.QizItem.Unit</span>
                </p>
            }*@            
        </li>
    }
</ol>
@section Scripts{
    <style type="text/css">
        .ui-content .ui-listview {
            margin: 0 0 1em 0;
        }

        .ui-listview > .ui-li-static {
            padding: 0.5em;
            margin: 0;
        }

        .ui-content h3, .ui-content h4 {
            word-break: break-all;
            word-wrap: break-word;
            overflow: auto;
            white-space: normal;
            margin:0 0.5em;
            line-height:1.8em;
        }
        .ui-listview > li p {
            margin:0px;
            font-size:0.8em;
            line-height:1.4em;
        }
        .ui-listview > li p, .ui-listview > li h4 {            
            word-break: break-all;
            word-wrap: break-word;
            white-space: normal;
            overflow: auto;
        }
            .ui-listview > li h4 {
                display:inline;
                line-height:1.6em;
            }
    </style>
}
